﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BaMusaSoft.RPS.ViewModel.Infrastructure
{
    public sealed class ScheduleDetailsStatistics
    {
        public ScheduleDetailsStatistics(int amountDueSum, int amountPaidSum)
        {
            AmountDueSum = amountDueSum;
            AmountPaidSum = amountPaidSum;
        }
        public int AmountDueSum { get; private set; }
        public int AmountPaidSum { get; private set; }
        public double AmountPaidPercent
        {
            get
            {
                if (AmountDueSum == 0) return 0;
                return ((double)AmountPaidSum / (double)AmountDueSum) * 100;
            }
        }
    }
}
